package com.systop.asset.mapper;

import java.util.List;
import com.systop.asset.entity.AssetAssignments;
import com.systop.asset.entity.vo.AssetAssignmentVO;
import org.apache.ibatis.annotations.Param;

/**
 * 资产领用记录Mapper接口
 * 
 * @author mc
 * @date 2025-06-30
 */
public interface AssetAssignmentsMapper 
{
    /**
     * 查询资产领用记录
     * 
     * @param id 资产领用记录主键
     * @return 资产领用记录
     */
    public AssetAssignments selectAssetAssignmentsById(Long id);

    /**
     * 查询资产领用记录列表
     * 
     * @param assetAssignments 资产领用记录
     * @return 资产领用记录集合
     */
    public List<AssetAssignments> selectAssetAssignmentsList(AssetAssignments assetAssignments);

    /**
     * 新增资产领用记录
     * 
     * @param assetAssignments 资产领用记录
     * @return 结果
     */
    public int insertAssetAssignments(AssetAssignments assetAssignments);

    /**
     * 修改资产领用记录
     * 
     * @param assetAssignments 资产领用记录
     * @return 结果
     */
    public int updateAssetAssignments(AssetAssignments assetAssignments);

    /**
     * 删除资产领用记录
     * 
     * @param id 资产领用记录主键
     * @return 结果
     */
    public int deleteAssetAssignmentsById(Long id);

    /**
     * 批量删除资产领用记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAssetAssignmentsByIds(Long[] ids);
    /**
     * 查询资产领用记录详情
     * @param id
     * @return
     */
    public AssetAssignmentVO selectDetail(String id);
    /**
     * 查询资产归还记录详情
     * @param id
     * @return
     */
    public AssetAssignmentVO selectDetailAll(String id);

    /**
     * 查询耗材领用记录列表
     * @param assetAssignments
     * @return
     */
    List<AssetAssignments> selectMaterialBorrowList(AssetAssignments assetAssignments);

    /**
     * 查询耗材领用记录列表
     * @param assetAssignments
     * @return
     */
    List<AssetAssignments> selectMaterialBorrowListByWechat(AssetAssignments assetAssignments);


    /**
     * 耗材出库查询
     * @param id
     * @param type
     * @return
     */
    AssetAssignmentVO selectDetailByMaterial(@Param("id") String id, @Param("type")  Integer type);
}
